package com.hhl;

import com.hhl.service.OrderService;
import com.hhl.service.OrderServiceImpl;
import com.hhl.service.UserService;

public class Main {
    public static void main(String[] args) throws ClassNotFoundException {
        SpringApplicationContext springApplicationContext = new SpringApplicationContext(AppConfig.class);

//        UserService userService = (UserService) springApplicationContext.getBean("userService");
//        System.out.println(userService);
//        String user = userService.getUser();


        OrderService orderService = (OrderService) springApplicationContext.getBean("orderService");
        orderService.test();

        System.out.println(1);
    }
}